Skip to main content

textAlignment

Type​

property

Summary​

Specifies the alignment that the text displayed in the label has with respect to the sides of the button.

Syntax​

set the textAlignment of widget to {center | left | right | top | bottom}
get the textAlignment of widget

Description​

Use the textAlignment property to specify the alignment that the text displayed in the label has with respect to the sides of the button.

Examples​

set the textAlignment of widget "Power button" to "center"

Compatibility and Support​

OS

mac

windows

linux

ios

android

web

Platforms

desktop

mobile